﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Billing.DataObjects
{
    public static class DataContextHelper
    {
        public static T GetSingleValue<T>(System.Collections.Generic.IEnumerable<T> enumerable)
        {
                foreach (T t in enumerable)
                {
                    return t;
                }
                return default(T);
        }
    }
}
